package com.gift.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 游戏账号随交易分数表
 */
public class AccByDea {
    /**
     * 游戏账号交易记录ID
     */
    private Integer adid;
    /**
     * 交易ID
     */
    private Integer did;
    /**
     * 游戏名字
     */
    private String gname;
    /**
     *游戏ID
     */
    private Integer gid;
    /**
     * 游戏账号id
     */
    private Integer aid;
    /**
     * 游戏账号文字
     */
    private String accountnum;
    /**
     * 账号上现有分值
     */
    private BigDecimal initialscore;
    /**
     * 随账出分
     */
    private BigDecimal sendscore;
    /**
     * 随账得分
     */
    private BigDecimal getscore;
    /**
     * 未敲分数
     */
    private BigDecimal canotscore;
    /**
     * 录入的账号最后分
     */
    private BigDecimal finalscore;
    /**
     * 计算比较的出错分
     */
    private BigDecimal worryscore;
    /**
     * 班次;早中晚：012
     */
    private Integer shift;
    /**
     * 操作者ID
     */
    private Integer handlerid;
    /**
     * 操作者
     */
    private String handlers;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createtime;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime modifytime;

    public AccByDea(Integer adid, Integer did, String gname, Integer gid, Integer aid, String accountnum, BigDecimal initialscore, BigDecimal sendscore, BigDecimal getscore, BigDecimal canotscore, BigDecimal finalscore, BigDecimal worryscore,Integer shift, Integer handlerid, String handlers, String remark, LocalDateTime createtime, LocalDateTime modifytime) {
        this.adid = adid;
        this.did = did;
        this.gname = gname;
        this.gid = gid;
        this.aid = aid;
        this.accountnum = accountnum;
        this.initialscore = initialscore;
        this.sendscore = sendscore;
        this.getscore = getscore;
        this.canotscore = canotscore;
        this.finalscore = finalscore;
        this.worryscore = worryscore;
        this.shift= shift;
        this.handlerid = handlerid;
        this.handlers = handlers;
        this.remark = remark;
        this.createtime = createtime;
        this.modifytime = modifytime;
    }

    public AccByDea() {
        super();
    }

    public Integer getAdid() {
        return adid;
    }

    public void setAdid(Integer adid) {
        this.adid = adid;
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname == null ? null : gname.trim();
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getAccountnum() {
        return accountnum;
    }

    public void setAccountnum(String accountnum) {
        this.accountnum = accountnum == null ? null : accountnum.trim();
    }

    public BigDecimal getInitialscore() {
        return initialscore;
    }

    public void setInitialscore(BigDecimal initialscore) {
        this.initialscore = initialscore;
    }

    public BigDecimal getSendscore() {
        return sendscore;
    }

    public void setSendscore(BigDecimal sendscore) {
        this.sendscore = sendscore;
    }

    public BigDecimal getGetscore() {
        return getscore;
    }

    public void setGetscore(BigDecimal getscore) {
        this.getscore = getscore;
    }

    public BigDecimal getCanotscore() {
        return canotscore;
    }

    public void setCanotscore(BigDecimal canotscore) {
        this.canotscore = canotscore;
    }

    public BigDecimal getFinalscore() {
        return finalscore;
    }

    public void setFinalscore(BigDecimal finalscore) {
        this.finalscore = finalscore;
    }

    public BigDecimal getWorryscore() {
        return worryscore;
    }

    public void setWorryscore(BigDecimal worryscore) {
        this.worryscore = worryscore;
    }

    public Integer getShift() {
        return shift;
    }

    public void setShift(Integer shift) {
        this.shift = shift;
    }

    public Integer getHandlerid() {
        return handlerid;
    }

    public void setHandlerid(Integer handlerid) {
        this.handlerid = handlerid;
    }

    public String getHandlers() {
        return handlers;
    }

    public void setHandlers(String handlers) {
        this.handlers = handlers == null ? null : handlers.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }

    public LocalDateTime getModifytime() {
        return modifytime;
    }

    public void setModifytime(LocalDateTime modifytime) {
        this.modifytime = modifytime;
    }

    @Override
    public String toString() {
        return "AccByDea{" +
                "adid=" + adid +
                ", did=" + did +
                ", gname='" + gname + '\'' +
                ", gid=" + gid +
                ", aid=" + aid +
                ", accountnum='" + accountnum + '\'' +
                ", initialscore=" + initialscore +
                ", sendscore=" + sendscore +
                ", getscore=" + getscore +
                ", canotscore=" + canotscore +
                ", finalscore=" + finalscore +
                ", worryscore='" + worryscore + '\'' +
                ", shift=" + shift +
                ", handlerid=" + handlerid +
                ", handlers='" + handlers + '\'' +
                ", remark='" + remark + '\'' +
                ", createtime=" + createtime +
                ", modifytime=" + modifytime +
                '}';
    }
}